TARGET=a.out
OBJS+=${patsubst %.c,%.o,${wildcard *.c}}
OBJS+=${patsubst %.c,%.o,${wildcard src/*.c}}
CC = gcc
CFLAGS+=-c -o


all:${OBJS}
	${CC} ${OBJS} -o ${TARGET} -lpthread

%.o:%c.c
	${CC} ${CFLAGS} $@ $^ 

clean:
	rm ${OBJS} ${TARGET}